package com.qi.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_club")
public class Club {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Long typeId;
    private Long presidentId;
    @TableField(exist = false)
    private String president;
    private int state;
    @JsonIgnore
    private String imageLocation;
    @TableField(exist = false)
    private String image;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField(exist = false)
    private Type type;
}
